// MTGraphPpg.cpp : Implementation of the CMTGraphPropPage property page class.

#include "stdafx.h"
#include "MTGraph.h"
#include "MTGraphPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CMTGraphPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CMTGraphPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CMTGraphPropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CMTGraphPropPage, "MTGRAPH.MTGraphPropPage.1",
	0xc0148968, 0x4ed2, 0x4401, 0xb2, 0xca, 0x3e, 0xff, 0x4a, 0xbe, 0xd6, 0x7f)


/////////////////////////////////////////////////////////////////////////////
// CMTGraphPropPage::CMTGraphPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CMTGraphPropPage

BOOL CMTGraphPropPage::CMTGraphPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_MTGRAPH_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CMTGraphPropPage::CMTGraphPropPage - Constructor

CMTGraphPropPage::CMTGraphPropPage() :
	COlePropertyPage(IDD, IDS_MTGRAPH_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CMTGraphPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CMTGraphPropPage::DoDataExchange - Moves data between page and properties

void CMTGraphPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CMTGraphPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CMTGraphPropPage message handlers
